-- GENERATED SPELL FOR [Foulbelly] --


function spell0_2601(pUnit, Event) --@Aura of Rot,n/a--
pUnit:FullCastSpellOnTarget(3106,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2601', 0, 1)
end

function spell1_2601(pUnit, Event) --@Deadly Poison,n/a--
pUnit:FullCastSpellOnTarget(3583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2601', 2000, 1)
end

function spell2_2601(pUnit, Event) --@Plague Cloud,n/a--
pUnit:FullCastSpellOnTarget(3256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2601', 2000, 1)
end

function spell3_2601(pUnit, Event) --@Slowing Poison,n/a--
pUnit:FullCastSpellOnTarget(7992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2601', 26000, 1)
end

function Sorts_2601(pUnit, Event)
local choix_sorts_2601 = math.random(0, 3)
if choix_sorts_2601 == 0 then
pUnit:RegisterEvent('spell0_2601', 1, 1)
end
if choix_sorts_2601 == 1 then
pUnit:RegisterEvent('spell1_2601', 1, 1)
end
if choix_sorts_2601 == 2 then
pUnit:RegisterEvent('spell2_2601', 1, 1)
end
if choix_sorts_2601 == 3 then
pUnit:RegisterEvent('spell3_2601', 1, 1)
end
end

function mob2601_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2601', math.random(1500, 3000), 1)
end

function mob2601_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2601_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2601_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2601, 1, 'mob2601_Action')
RegisterUnitEvent(2601, 2, 'mob2601_Leave')
RegisterUnitEvent(2601, 3, 'mob2601_Kill')
RegisterUnitEvent(2601, 4, 'mob2601_Die')
